/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Huytn.sessionBean;

import Easy.table.CreditCard;
import Easy.table.Users;
import javax.ejb.Local;

/**
 *
 * @author DR.HUY
 */
@Local
public interface UserSessionBeanLocal {
    boolean insertUser(String username, String password, String name, String dob, String address, String phone, String email, String role, String status);

    Users login(String username, String password);

    boolean updateProfile(int id, String username, String name, String dob, String address, String phone, String email);

    boolean updatePassword(int id, String nPass);

    Easy.table.Users[] loadUsers(String role);

    boolean disableUser(int userID, String status);

    String checkCredit(String cardNumber, int total);

    boolean insertOrder(int userID, String cardNum, String total, String date, String address, String status);

    boolean insertOrderDetail(int orderID, int ticketID, int quantity);

    int selectOrderId();
}
